home *** CD-ROM | disk | FTP | other *** search
/ Hráč 2004 August / Hrac_72_2004-08_dvd.iso / dema / Rapid Gun / rg_setup.exe / common / common.fxh < prev    next >
Text File  |  2004-04-21  |  1KB  |  16 lines

  1. // LF2 Engine
  2. // (C) 2002-3 7FX
  3. //---------------------------------------------------------------------------
  4. // Header file with common defs
  5. //---------------------------------------------------------------------------
  6. // Declares variables for texture sampler filters
  7. #define DECLARE_TEX_SAMPLER_VALUES  const int cMipFlt : TextureMipFilter = 1; const int cMagFlt : TextureMagFilter = 2; const int cMinFlt : TextureMinFilter = 2; /*POINT, LINEAR, LINEAR*/ const int cAniso : TextureAnisotropy = 1; const int cAddr : TextureAddress = 1 /*D3DTADDRESS_WRAP*/
  8. // Sets texture sampler filters     
  9. #define SET_TEX_SAMPLER_FILTERS MipFilter = <cMipFlt>; MinFilter = <cMinFlt>; MagFilter = <cMagFlt>; MaxAnisotropy = <cAniso>
  10. // Sets texture sampler address modes
  11. #define SET_TEX_SAMPLER_ADDRESS AddressU = <cAddr>; AddressV = <cAddr>
  12.  
  13. // Sets all tex sampler values
  14. #define SET_TEX_SAMPLER_VALUES   SET_TEX_SAMPLER_FILTERS;   SET_TEX_SAMPLER_ADDRESS
  15. //---------------------------------------------------------------------------
  16.